package org.csu.code.api.service;

import org.csu.code.api.common.CommonResponse;
import org.csu.code.api.entity.Account;
import org.csu.code.api.entity.Profile;
import org.csu.code.api.entity.Signon;
import org.csu.code.api.vo.AccountVO;
import org.csu.code.api.vo.SignonVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface AccountService {
    CommonResponse<AccountVO> getAccountByUserId(int userId);

    CommonResponse<List<AccountVO>> getAccountList();

    CommonResponse<List<Profile>> getallAccountprofile();

    CommonResponse<AccountVO> login(Signon signon);

    CommonResponse<String> insertAccount(AccountVO accountVO);

    CommonResponse<String> updateAccount(AccountVO accountVO, HttpServletRequest request);

    int getNextId(String name);

    AccountVO accountToAccountVO(Account account);

    CommonResponse<AccountVO> getAccountByPhone(String phone);
}
